package com.sunjq.multithread.createconsumer;

public  class Warehouse {
	
	private int incomeId = 100;
	private int outcomeId = 100;
	
	private String status = "created";

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public int getOutcomeId() {
		return outcomeId;
	}

	

	public int getIncomeId() {
		return incomeId;
	}

	
	
	public void inCome() {
		incomeId++;
	}
	
	public void outCome() {
		outcomeId++;
	}

	
	public static void main (String args[]) {
		Thread t1 = new Thread(new Creator());
		t1.start();
		
		Thread t2 = new Thread(new Consumer());
		t2.start();
		
	}
}
